//
//  BGPresentNavigationController.swift
//  Baga
//
//  Created by 飞王 on 16/12/30.
//  Copyright © 2016年 飞王. All rights reserved.
//  when present controller need navigation ,can use it

import UIKit

class BGPresentNavigationController: UINavigationController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        navigationBar.setBackgroundImage(UIImage(named:"header_bg") , for: UIBarMetrics.default);
        navigationBar.tintColor = UIColor.white;
        navigationBar.titleTextAttributes = {[
            NSForegroundColorAttributeName: UIColor.white,
            NSFontAttributeName: UIFont(name: "Heiti SC", size: 20.0)!
            ]}()

        // Do any additional setup after loading the view.
    }
    
    override var preferredStatusBarStyle: UIStatusBarStyle {
    
        return UIStatusBarStyle.lightContent;

    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
